package com.tl.app.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.app.domain.AppGiftUser;

/**
 * 打赏礼物Mapper接口
 * 
 * @author suhp
 * @date 2024-07-28
 */
public interface AppGiftUserMapper 
{
    /**
     * 查询打赏礼物
     * 
     * @param id 打赏礼物主键
     * @return 打赏礼物
     */
    public AppGiftUser selectAppGiftUserById(Long id);

    /**
     * 查询打赏礼物列表
     * 
     * @param appGiftUser 打赏礼物
     * @return 打赏礼物集合
     */
    public List<AppGiftUser> selectAppGiftUserList(AppGiftUser appGiftUser);

    /**
     * 新增打赏礼物
     * 
     * @param appGiftUser 打赏礼物
     * @return 结果
     */
    public int insertAppGiftUser(AppGiftUser appGiftUser);

    /**
     * 修改打赏礼物
     * 
     * @param appGiftUser 打赏礼物
     * @return 结果
     */
    public int updateAppGiftUser(AppGiftUser appGiftUser);

    /**
     * 删除打赏礼物
     * 
     * @param id 打赏礼物主键
     * @return 结果
     */
    public int deleteAppGiftUserById(Long id);

    /**
     * 批量删除打赏礼物
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppGiftUserByIds(Long[] ids);
    
    
    /**
     * 获取店员/用户礼物墙
     * 
     * @param clerkId 店员id
     * @return 结果
     */
    public List<Map<String,Object>> selectAppGiftUserByClerkId(@Param("userId")Long userId,@Param("userType")String userType);
    
    
    /**
     * 获取店员已点亮数
     * 
     * @param clerkId 店员id
     * @return 结果
     */
    public Map<String,Object> selectAppGiftUserByClerkIdAndDlNum(Long clerkId);
}
